package com.atguigu.eduorder.client;

import com.atguigu.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Auther: wangsir
 * @Date: 2022/7/12-07-12-19-07-54
 * @Description: com.atguigu.eduorder.client
 * @version: 1.0
 */
@Component
@FeignClient("service-edu")
public interface EduClient {
    //根据课程id查询课程详细信息
    @PostMapping("/eduService/coursefront/getCourseInfoOrder/{courseId}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("courseId") String courseId);
}
